package com.dq.service.account;

import com.dq.controller.in.AccountQuery;
import com.dq.controller.in.CountAccountQuery;
import com.dq.controller.in.StaffSubscribeQuery;
import com.dq.domain.subscribe.Subscribe;
import com.dq.domain.sys.user.Account;
import com.dq.exception.customException.AdminException;

import java.math.BigDecimal;
import java.util.List;

/**
 * @Author luchangtong
 * @Date 2020/4/13 15:42
 */
public interface AccountService {
    List<Account> list(AccountQuery accountQuery)throws AdminException;
    Long accountCount(AccountQuery accountQuery)throws AdminException;

    BigDecimal countAccountByToDay(StaffSubscribeQuery countAccountQuery) throws AdminException;

    public Account saveLessAccount(Subscribe subscribe,BigDecimal projectPrice,BigDecimal originalPrice,Account.AccountPayType accountPayType,BigDecimal surplusPrice,BigDecimal surplusGivePrice) throws AdminException;


    int accountCount(String sql);
}
